Let the depth of the water be x cm. Then the stem is x+20 cm long.
When the stem is bent, the root, the point on the surface directly above the root, and the bud form a right triangle with the right angle at the surface (the stem first stood straight up). Its shorter sides are x (the depth) and 100 cm, and the hypotenuse is the stem, x+20. By Baudhāyana's Theorem:
x2+1002=(x+20)2
x2+10000=x2+40x+400
The x2 on both sides cancels:
40x=10000−400=9600
x=240
The water is 240 cm (2.4 m) deep, and the stem is 240+20=260 cm long. Check: 2402+1002=57600+10000=67600=2602.