A rectangle has a perimeter of 64 inches and a length of 22 inches. Which equation can you solve to find the width?

A. 64 − w = 44

B. 2w + 44 = 64

C. 2w + 22 = 64

D. 22 + w = 64