At the veterinarians office, Terri learned that her dog weighed 4 times as much as her cat. Together they weighed 40lbs. How much dis the dog weigh?