This homework is intended to teach you how to navigate inside hashes. I would read the tutorial here and perldata.
There are built in functions in Perl for retrieving the keys and values of a hash. You'll be using those as well as the direct form of access. Show us what you have for code, and we can offer suggestions. It won't help you for us to do your homework for you, especially on fundamentals like this.
But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)