Accounting foundations

A business begins a period with equity of $40,000. During the period it earns net income of $6,000, receives an owner contribution of $3,000, and has an owner withdrawal of $2,000. What is ending equity?