loop and log file

i have a file which has number some thing like this
1
5
3
6
each line contains a number , there can be any number of numbers
I need all the logs corresponding to this number should should show last 50 lines
tail -50 /apps/tlm/prd/ibt/logs/TCPP01/batchlogs/WORKFLOW01.TCPP01

the naming convention of the log is WORKFLOW(NUMBER).TCPP01

what have you tried till now??