A right triangle and an isosceles triangle have equal areas. The right triangle has sides of length 3, 4 and 5 units. The isosceles triangle has sides of 3, x and x units. What is the value of x?