We can use ratios to solve
30 years E 50 years E
---------------- = ----------------
4 years Z x years Z
Using cross products
30x = 4 * 50
30x = 200
Divide by 30
30x/30 = 200/30
x =6 2/3 years
30 years E y years E
---------------- = ----------------
4 years Z 3 years Z
Using cross products
30 *3 = 4y
90 = 4y
Divide by 4
90/4 = y
22.5 years