Final answer:
To find the time Layla spent on the treadmill, subtract the lengths of her warm-up and cool-down from the total length of her workout. Layla walked on the treadmill for 28 minutes.
Step-by-step explanation:
To find the time Layla spent on the treadmill, we need to subtract the lengths of her warm-up and cool-down from the total length of her workout. Let's calculate:
Total length of workout = 40 minutes
Length of warm-up = 5 minutes
Length of cool-down = 7 minutes
Time spent on the treadmill = Total length of workout - Length of warm-up - Length of cool-down
Time spent on the treadmill = 40 minutes - 5 minutes - 7 minutes
Time spent on the treadmill = 28 minutes
Therefore, Layla walked on the treadmill for 28 minutes this morning.