Calculate the lateral and surface area of a prism whose height is 12 cm and whose base is a rectangle with dimensions 5 cm by 7 cm.