Dear student,
The first formula is for series connection and the second is for parallel connection. In series, current remains the same and in parallel voltage remains the same
Power is directly proportional to resistance in series connection and inversely proportional to resistance in parallel connection
Regards