What you're saying is applicable only when the B and H for both the triangle and the parallelogram are the same. Here they're not same

Here the heights are the same. But the base for the parallelogram is 14 units while for the triangle it's 4 units. So you need to calculate their respective areas first and then take the ratio