Let D = time in minutes to vacuum downstairs
Upstairs = 2D + 5 minutes
3D + 5 = 38
3D = 33
D = <<11=11>>11 minutes
Upstairs = (2 * 11) + 5 = <<(2*11)+5=27>>27 minutes
Dad took 27 minutes to vacuum upstairs.
#### 27