EXTREMELY CONFUSED PLS HELP :))

height = p and side length = r
Solution:
Given image is the square pyramid.
Base of the pyramid is a square.
Each side length of the base is same.
To find the height and side length of the base of the pyramid.
Side length of the base = r
Height of the square pyramid = p
Hence height = p and side length = r