How can I create the rounded rectangles?

You are welcome to use the rounded rectangle tool (access the tool group by pressing “M” on your keyboard and then right-click to view all tools in the group) or create a regular rectangle and click > drag the anchor points inside the corners of the rectangle to round the corners as desired.