A local gym charges nonmembers $10 per hour to use the tennis courts. Members pay a yearly fee of $300 and $4 per hour for using the tennis courts. Write and solve an equation to find how many hours you must use the tennis courts to justify becoming a member.