marissa earned $560 in the summer. she earned $40 each week for part of the summer and $60 each week for the rest. If she earned $40 each week twice as often as she earned $60, how many weeks did she earn $40?