State tax filing

Thanks for all the answers. Really appreciate. When I file for federal extension, will that also file for NY and PA extension or do I have to separately file for an extension for both the states?