Column headers with buttons are sortable.
Margin call $1,475
Sell 75% marginable securities $1,475/0.75
Credit to margin call $1,500*.75=$1,125
Deposit cash $350
Shortfall  $0
Margin debt $3,525
Stock value $5,550
Net portfolio value $1,975
New margin requirement $1,350