Two balls A and B are thrown vertically upwards with their initial velocity in the ratio 3 : 4.