Let x be the length of the side of the square and y be the length of the side of the parallelogram.
The area of the square = x2
The area of the parallelogram = y × h
Therefore, x2 + y × h = 301
h = (301 - x2) / y
Therefore, the value of h can be calculated by substituting the values of x and y.