House sale

Hi,

 

I bought a house in philly for my brother and sold it recently and the profit was 45k. It was not my primary residence. do i have to pay taxes on that amount and how much?