You are robbing a bank, but you’re not taking everything. You are looking for a specific item in the safety deposit boxes and you are going to drill into each one in order to find your item. Once you find your item you can make your escape, but how long will it take you to get to that item?
Determine the amount of time it will take you to find the item you are looking for if it takes you 5 minutes to drill into each box.
A string that represent the items in each box that will be drilled in order (items are separated by a comma), and secondly, a string of which item you are looking for.
An integer of the amount of time it will take for you to find your item.
gold,diamonds,documents,Declaration of Independence,keys
Declaration of Independence
20
It will take you 20 minutes before you drill into the 4th box, which contains your item, the Declaration of Independence.