Jessica rented a truck to move into another apartment. The rental charge is $140 per day plus $0.35 per mile. Write an equation to determine x, the number of miles she can drive the truck if the cost is y.