Rip a 2x4 diagonally to create the sides. Screw each wedge to the face of a stud. Install a plywood face and you’re ready to store stuff.
Figure A
Slant rack