Totally depends on the school. At some places, you have to apply twice, completely independently and pay the fee twice. At others, you apply once (and pay once) and choose which department(s) to send your materials too. Usually the Graduate School's website has a FAQ that lets you know what to do in this case. Otherwise, you can contact both departments directly and find out.