import Foundation
func pentagonArea(side: Double, apothem: Double) -> Double {
5.0 * (side * apothem) / 2.0
}
let side = 5.0
let apothem = 3.0
let area = pentagonArea(side: side, apothem: apothem)
print(String(format: "Area = %.2f", area))
/*
run:
Area = 37.50
*/