input: Write a python function to extract email addresses and phone numbers from a given text using regular expressions.
  assert extract_details('My email is hello@domain.com and my phone number is +123456789') == (['hello@domain.com'], ['+123456789'])
  assert extract_details('Contact us at support@example.com or call us at +9876543210') == (['support@example.com'], ['+9876543210'])
  assert extract_details('Emails: first.email@example.com, second.email@another-domain.com and phone: +19876543210') == (['first.email@example.com', 'second.email@another-domain.com'], ['+19876543210'])
output: import re
  
  def extract_details(text):
      email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'
      phone_pattern = r'\+\d+'
      
      emails = re.findall(email_pattern, text)
      phones = re.findall(phone_pattern, text)
      
      return (emails, phones)