Amount of \( 3000 \) zlotys was paid to bank \( A \) for interest-bearing investment of \( p\% \) per year. Amount \( 4000 \) zlotys was paid to bank \( B \), where the interest rate is by \( 2 \) percentage points higher than in bank \( A \). After one year, the interest earned in both banks amounted to \( 360 \) zlotys. What was the interest rate \( p \)?