There are 92 beds in a 40-room motel. Each rooms has 2 or 3 beds. How many rooms have 2 beds?