Find all files (-type f) with any name ("*") that have been modified more than 30 minutes ago (-mmin +30) and change their permissions to 640 (-exec chmod 640 {} \;).
find / -type f -name "*" -mmin +30 -exec chmod 640 {} \;