At time t=0, rock A is dropped from rest from a height of 90 m. At the same instant, rock B is launched straight up from the ground level with an initial speed of 30 m/s. Write an equation of motion for rock A and B, giving its position at all time.