I see you did it algebraically, but did you note the geometry of the situation? Given that the height of the pyramid is half the length of one side of the base, can you see how six of these pyramids make a cube whose sides are of length c? This will help with the last question.