Which of the following three-dimensional figures could have a net which consists of two squares and four rectangles?

cube
rectangular prism
square pyramid
triangular prism