Using the Pythagoras theorem since it is given that it is a right angled triangle
let us name the triangle as A, B, C with B as right angle
AB^2 + BC^2 = AC^2 ( Pythagoras theorem)
where AB = 4 , BC = 7 , AC = x