If my ladder is 6m long and its foot is 1.5m from a vertical wall how far can the ladder reach up the wall?

Make a sketch and you will see that you can use Pythagoras

x^2 + 1.5^2 = 6^2

carry on