State tax filing

Thanks! One more question: how can I get a credit for the taxes paid to Pennsylvania? Is there any specific tax code/rule for the credit you mentioned? Thanks!