Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE assignedto ( scientist number, project text )
TABLE: CREATE TABLE scientists ( ssn number, name text )
TABLE: CREATE TABLE projects ( code text, name text, hours number )

### Question ###
Find the SSN and name of scientists who are assigned to the project with the longest hours.

### Accurate SQL ###

SELECT T3.ssn, T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.ssn WHERE T2.hours = (SELECT MAX(hours) FROM projects)