The area of the rectangle is 48cm2, so the unshaded area is 12cm2. Therefore taking the two unshaded triangles together: (1/2×x×2) + (1/2×(6-x)×8) = 12 which means that x + 24 - 4x = 12, so x = 4.