Greg's family paid $312 to stay in a hotel for 4 nights. Greg wants to create an equation in the form see equals square dee, to represent the total cost, c, to stay in the hotel for d days. What number should Greg put in the square to complete his equation?