How does your class rank work if you go to 2 different high schools?

Hi there. I’m about to go into Junior year and I’m going to be moving. I’m assuming my GPA will be put into their system and I’ll be given a class rank there. Will the colleges I apply to only see the class rank of the high school I go to for Junior and senior year? Or will they need to see the rank for the high school I went to for freshman and sophomore year as well? I’m worried they’ll want to see it because I’m only 52/310. My new high school is going to be less rigorous and I’m hoping to be in the top 20 of my class.