The profits made by Happenin' Hats depend on the number of the hats they sell. If the company's weekly expenses are $2250 and they charge $45 per hat, their profits "p" can be calculated by the equation: p=45n-2250, where "n" is the number of hats sold. Write this relation in functional notation.