Pyramid A with height 8 has lateral edges of length 10. Pyramid B with height 12 has lateral edges of 15. Both A and B are regular square pyramids. What is the ratio of the heights of the pyramid?