With 30K in position value and 25K in cash you used up all you 25K and borrowed 5K on margin. You cash value would be negative 5K.
All you commission, fees etc will be added to your cash value as debit, meaning that you keep borrowing more from a broker in addition to the initial 5K.